|
|
|
|
|
|
|
Figure 14.17.
Displaying a message box in the Web browser. |
|
|
|
|
|
|
|
|
As you can see, the code is very similar to the VBScript code that you created in the previous section. At this point, you are probably asking yourself, Why should I use DHTML? The answer to this question is the performance that you can provide for a Web-based application by having all of the processing performed on the local computer. |
|
|
|
|
|
|
|
|
In addition to creating a fully functional application, you can also add Hyperlink commands to the HTML pages in the application to give the user the ability to go to other pages in the application, or to other pages on the Internet. |
|
|
|
|
|
|
|
|
To enable the user to go to another page in the application, you could use the following code example. |
|
|
|
|
|
|
|
|
Private Function Button1_OnClick() As Boolean
BaseWindow.Navigate Project1.DHTMLPage2.html
End Function |
|
|
|
|
|
|
|
|
This example uses the navigate method of the BaseWindow object to move to the specified location. Project1.DHTMLPage2.html is the default name that was assigned to the second DHTML page added to the project. By changing the value passed to the navigate method, you can have the user go to any Web site on the Internet. |
|
|
|
|
|